API Reference > OdGe Classes > OdGePoint2d Class > OdGePoint2d Operators > [] Operator > OdGePoint2d::[] Operator (unsigned int)
OdGePoint2d::[] Operator (unsigned int)
Syntax
C++
double& operator [](unsigned int i);
Parameters 
Description 
unsigned int i 
[in] Index of coordinate. 

details Returns ith coordinate of this point. 

 

  • 0 returns the X-coordinate.
  • 1 returns the Y-coordinate.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.